<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import BasicLayout from '@/layout/BasicLayout.vue'
import EmptyLayout from '@/layout/EmptyLayout.vue'

const route = useRoute()
const layout = computed(() => {
  return route.meta.layout || 'default'
})
</script>

<template>
  <component :is="layout === 'default' ? BasicLayout : EmptyLayout">
    <router-view />
  </component>
</template>

<style>
@import '@/assets/main.css';
</style>
